From 439bebba61e0fb22a6500cbca5ee3e1f390a1d0e Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Thu, 17 Nov 2005 11:54:52 +0100 Subject: [PATCH] Here's the patch for making the otherend_changed entrypoint optional. The USB driver doesn't need this entrypoint because the state machine driven by it is factored out of the driver code entirely into xenidc. Signed-off-by: Harry Butterworth butterwo@uk.ibm.com --- linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c index fd49ca898f..56ac2505b7 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c @@ -299,8 +299,8 @@ static void otherend_changed(struct xenbus_watch *watch, DPRINTK("state is %d, %s, %s", state, dev->otherend_watch.node, vec[XS_WATCH_PATH]); - - drv->otherend_changed(dev, state); + if (drv->otherend_changed) + drv->otherend_changed(dev, state); } -- 2.30.2